home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / devices / prtbase.m < prev    next >
Encoding:
Text File  |  2002-01-16  |  3.1 KB  |  149 lines

  1. MODULE 'devices/serial','devices/parallel','exec/tasks','utility/tagitem','intuition/preferences'
  2.  
  3. OBJECT DeviceData
  4.   Device|Lib:Lib,
  5.   Segment:APTR,
  6.   ExecBase:APTR,
  7.   CmdVectors:APTR,
  8.   CmdBytes:APTR,
  9.   NumCommands:UWORD
  10.  
  11. CONST DEVICES_PRTBASE_I=1,
  12.  IOB_QUEUED=4,
  13.  IOB_CURRENT=5,
  14.  IOB_SERVICING=6,
  15.  IOB_DONE=7,
  16.  IOF_QUEUED=(1<<IOB_QUEUED),
  17.  IOF_CURRENT=(1<<IOB_CURRENT),
  18.  IOF_SERVICING=(1<<IOB_SERVICING),
  19.  IOF_DONE=(1<<IOB_DONE),
  20.  PB_IOR0=0,
  21.  PB_IOR1=1,
  22.  PB_IOOPENED=2,
  23.  PB_EXPUNGED=7,
  24.  PBF_IOR0=(1<<PB_IOR0),
  25.  PBF_IOR1=(1<<PB_IOR1),
  26.  PBF_IOOPENDED=(1<<PB_IOOPENED),
  27.  PBF_EXPUNGED=(1<<PB_EXPUNGED),
  28.  DUB_STOPPED=0,
  29.  DUF_STOPPED=(1<<DUB_STOPPED),
  30.  P_OLDSTKSIZE=$0800,
  31.  P_STKSIZE=$1000,
  32.  P_BUFSIZE=256,
  33.  P_SAFESIZE=128
  34.  
  35. OBJECT PrinterData
  36.   Device|DD:DeviceData,
  37.   Unit:MP,
  38.   PrinterSegment:BPTR,
  39.   PrinterType:UWORD,
  40.   SegmentData:PTR TO PrinterSegment,
  41.   PrintBuf:PTR TO UBYTE,
  42.   PWrite:LONG,
  43.   PBothReady:LONG,
  44.   NEWUNION  IOR0
  45.     P0:IOExtPar,
  46.     S0:IOExtSer
  47.   UNION IOR1
  48.     P1:IOExtPar,
  49.     S1:IOExtSer
  50.   ENDUNION,
  51.   TIOR:TimeRequest,
  52.   IORPort:MP,
  53.   TC:TC,
  54.   OldStk[$800]:UBYTE,
  55.   Flags:UBYTE,
  56.   pad:UBYTE,
  57.   Preferences:Preferences,
  58.   PWaitEnabled:UBYTE,
  59.   Flags1:UBYTE,
  60.   Stk[$1000]:UBYTE,
  61. //  PUnit:PTR TO PrinterUnit, /* Can't find this one !!! */
  62.   PRead:LONG,
  63.   CallErrHook:LONG,
  64.   UnitNumber:ULONG,
  65.   DriverName:PTR TO UBYTE,
  66.   PQuery:LONG
  67.  
  68. CONST PPCB_GFX=0,
  69.     PPCF_GFX=1,
  70.     PPCB_COLOR=1,
  71.     PPCF_COLOR=2,
  72.     PPC_BWALPHA=0,
  73.     PPC_BWGFX=1,
  74.     PPC_COLORALPHA=2,
  75.     PPC_COLORGFX=3,
  76.     PPCB_EXTENDED=2,
  77.     PPCF_EXTENDED=$4,
  78.     PPCB_NOSTRIP=3,
  79.     PPCF_NOSTRIP=$8,
  80.     PCC_BW=1,
  81.     PCC_YMC=2,
  82.     PCC_YMC_BW=3,
  83.     PCC_YMCB=4,
  84.     PCC_4COLOR=4,
  85.     PCC_ADDITIVE=8,
  86.     PCC_WB=9,
  87.     PCC_BGR=10,
  88.     PCC_BGR_WB=11,
  89.     PCC_BGRW=12,
  90.     PCC_MULTI_PASS=16
  91.  
  92. OBJECT PrinterExtendedData
  93.   PrinterName:PTR TO CHAR,
  94.   Init:VOID,
  95.   Expunge:VOID,
  96.   Open:LONG,
  97.   Close:VOID,
  98.   PrinterClass:UBYTE,
  99.   ColorClass:UBYTE,
  100.   MaxColumns:UBYTE,
  101.   NumCharSets:UBYTE,
  102.   NumRows:UWORD,
  103.   MaxXDots:LONG,
  104.   MaxYDots:LONG,
  105.   XDotsInch:UWORD,
  106.   YDotsInch:UWORD,
  107.   Commands:PTR TO PTR TO PTR TO UBYTE,
  108.   DoSpecial:LONG,
  109.   Render:LONG,
  110.   TimeOutSecs:LONG,
  111.   8BitChars:PTR TO PTR TO UBYTE,
  112.   PrintMode:LONG,
  113.   ConvFunv:LONG,
  114.   TagList:PTR TO TagItem,
  115.   DoPreferences:LONG,
  116.   CallErrHook:VOID
  117.  
  118. OBJECT PrinterSegment
  119.   NextSegment:BPTR,
  120.   runAlert:ULONG,
  121.   Version:UWORD,
  122.   Revision:UWORD,
  123.   PED:PrinterExtendedData
  124.  
  125. OBJECT PrtDriverPreferences
  126.   Version:UWORD,
  127.   PrinterID[32]:UBYTE,
  128.   PrefName[FILENAME_SIZE-16]:CHAR,
  129.   Length:ULONG
  130.  
  131. CONST PRTA_Dummy=(TAG_USER + $50000), /* V44 features */
  132.  PRTA_8BitGuns=(PRTA_Dummy + 1),
  133.  PRTA_ConvertSource=(PRTA_Dummy + 2),
  134.  PRTA_FloydDithering=(PRTA_Dummy + 3),
  135.  PRTA_AntiAlias=(PRTA_Dummy + 4),
  136.  PRTA_ColorCorrection=(PRTA_Dummy + 5),
  137.  PRTA_NoIO=(PRTA_Dummy + 6),
  138.  PRTA_NewColor=(PRTA_Dummy + 7),
  139.  PRTA_ColorSize=(PRTA_Dummy + 8),
  140.  PRTA_NoScaling=(PRTA_Dummy + 9),
  141.  PRTA_DitherNames=(PRTA_Dummy + 20),
  142.  PRTA_ShadingNames=(PRTA_Dummy + 21),
  143.  PRTA_ColorCorrect=(PRTA_Dummy + 22),
  144.  PRTA_DensityInfo=(PRTA_Dummy + 23),
  145.  PRTA_LeftBorder=(PRTA_Dummy + 30),
  146.  PRTA_TopBorder=(PRTA_Dummy + 31),
  147.  PRTA_MixBWColor=(PRTA_Dummy + 32),
  148.  PRTA_Preferences=(PRTA_Dummy + 40)
  149.